//package com.per.mybootall.controller;
//
//import com.per.mybootall.utils.FTPUtil;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import junit.framework.TestCase;
//
//import java.util.Map;
//@SpringBootTest
//@Controller
//public class FtpDownloadTest {
//    @Autowired
//    private FTPUtil ftpUtil;
//    @Value("${ftp.local.save.basepath}")
//    private String localSavePath;
//
//    @RequestMapping("/testFtpDownload")
//    public String testDownload(){
//        Map<String, Object> result = ftpUtil.downLoadTableFile("/home/ftp/GetPhoto/", localSavePath);
//        TestCase.assertEquals(true, result.get("result"));
//        return null;
//    }
//}
